package com.zhouyu.exampledesignmoudle.strategy;

/**
 * @Description:调用具体的策略
 */

public class StrategyContext {

    private Strategy strategy;

    public StrategyContext(Strategy strategy) {
        this.strategy = strategy;
    }

    public void shearAll() {
        strategy.share();
    }
}
